package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author 刘武贵
 * @Date 2024/2/28 1:05
 * @Description 功能描述：订单服务启动类
 */
@SpringBootApplication
/**
 * 启用事务管理，使用代理目标类模式
 */
@EnableTransactionManagement(proxyTargetClass = true)
/**
 * 扫描指定包下的Mapper接口
 */
@MapperScan(value = { "com.example.order.mapper" })
/**
 * 启用服务发现客户端
 */
@EnableDiscoveryClient
/**
 * 启用Feign客户端
 */
@EnableFeignClients
public class OrderStarter {
    public static void main(String[] args){
        SpringApplication.run(OrderStarter.class, args);
    }
}